package com.iot.service.chart;

import com.iot.mapper.ChartMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ChartServiceImpl implements ChartService {

    @Autowired
    ChartMapper chartMapper;

    @Override
    public List<Map<String, Object>> getDevChart(Map<String, Object> map) {
        return chartMapper.getDevChart(map);
    }

    @Override
    public List<Map<String, Object>> getDevOpenTimesChart(Map<String, Object> map) {
        return chartMapper.getDevOpenTimesChart(map);
    }

    @Override
    public List<Map<String, Object>> getDevSensorChart(Map<String, Object> map) {
        return chartMapper.getDevSensorChart(map);
    }

    @Override
    public List<Map<String, Object>> getDevBoxWarnChart1(Map<String, Object> map) {
        return chartMapper.getDevBoxWarnChart1(map);
    }

    @Override
    public List<Map<String, Object>> getDevBoxWarnChart2(Map<String, Object> map) {
        return chartMapper.getDevBoxWarnChart2(map);
    }

    @Override
    public List<Map<String, Object>> getDevBoxWarnChart3(Map<String, Object> map) {
        return chartMapper.getDevBoxWarnChart3(map);
    }
    //井盖
    /**
     *
     * @param map
     * @return
     */
    @Override
    public List<Map<String, Object>> getDevMCoverWarnChart1(Map<String, Object> map) {
        return chartMapper.getDevMCoverWarnChart1(map);
    }


    @Override
    public List<Map<String, Object>> getDevMCoverWarnChart3(Map<String, Object> map) {
        return chartMapper.getDevMCoverWarnChart3(map);
    }


}
